/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 涛
 * Date: 2023-09-28
 * Time: 20:21
 */
public class Test1 {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        //mySingleList.createList();
        //mySingleList.display();
        //System.out.println(mySingleList.size());
        //mySingleList.addFirst(12);
        //mySingleList.addFirst(23);
        //mySingleList.addFirst(34);
        //mySingleList.addFirst(45);
        //mySingleList.addFirst(56);

        mySingleList.addLast(12);
        mySingleList.addLast(23);
        mySingleList.addLast(34);
        mySingleList.addLast(45);
        mySingleList.display();
        mySingleList.addIndex(5, 99);
        //mySingleList.display();
        //System.out.println(mySingleList.contains(9));
        //mySingleList.remove(34);
        //mySingleList.removeAllKey(12);
        //mySingleList.clear();
        mySingleList.display();
    }
}
